#include "../Viewer2D/dicomviewer.h"
#include <QApplication>
#include <QTranslator>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    a.setQuitOnLastWindowClosed(true);

    a.setOrganizationName("JiuFeng");
    a.setOrganizationDomain("jfhealthcare.com");
    a.setApplicationName("JF Dicom Viewer");

    QTranslator t;
    t.load("dicomviewer_cn.qm");
    a.installTranslator(&t);

    DicomViewer w;
    if (!w.isServerListening()) {
        return 0;
    }
    w.showMaximized();

    return a.exec();
}
